package com.example.xyxwebbackend001.service;

import com.example.xyxwebbackend001.model.DTO.ArticleRequestDTO;
import com.example.xyxwebbackend001.model.DTO.ArticleSimpleDTO;
import com.example.xyxwebbackend001.model.entity.CPosts;
import com.example.xyxwebbackend001.model.vo.ArticleListVO;
import com.example.xyxwebbackend001.model.vo.ArticlePathListVO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface CPostsService {
    CPosts getPostDetail(Integer id);
    List<ArticleSimpleDTO> getArticlesByCity(String cityId);

    Map<String, Object> getArticleDetail(Integer articleId);

    Integer publishCPost(ArticleRequestDTO requestDTO);

    List<ArticleListVO> getCPostsList(@RequestParam(required = false) String keyword);

    Integer updateArticleStatus(Integer articleId, Integer status);

    List<ArticlePathListVO> getArticlePathList(String tags);
}
